﻿using System;

namespace EventScavenger
{
    public class GlobalSettingsData
    {
        private int maxLogEntries = 500000;
        public int MaxLogEntries
        {
            get { return maxLogEntries; }
            set { maxLogEntries = value; }
        }
        private bool maintenanceEnabled;
        public bool MaintenanceEnabled 
        {
            get { return maintenanceEnabled; }
            set { maintenanceEnabled = value; }
        }        
        private int maintenanceFrequencyMinutes = 15;
        public int MaintenanceFrequencyMinutes
        {
            get { return maintenanceFrequencyMinutes; }
            set { maintenanceFrequencyMinutes = value; }
        }
        private string maintenanceRunner = "";
        public string MaintenanceRunner
        {
            get { return maintenanceRunner; }
            set { maintenanceRunner = value; }
        }
        private DateTime maintenanceLastRun = new DateTime(2010,1,1);
        public DateTime MaintenanceLastRun
        {
            get { return maintenanceLastRun; }
            set { maintenanceLastRun = value; }
        }
        private int maintenanceTimeOutSeconds = 300;
        public int MaintenanceTimeOutSeconds
        {
            get { return maintenanceTimeOutSeconds; }
            set { maintenanceTimeOutSeconds = value; }
        }
        private int recyclingCheckFrequencyMinutes = 5;
        public int RecyclingCheckFrequencyMinutes
        {
            get { return recyclingCheckFrequencyMinutes; }
            set { recyclingCheckFrequencyMinutes = value; }
        }
        private DateTime nextCreateHistoryTime = new DateTime(2010, 1, 1);
        public DateTime NextCreateHistoryTime
        {
            get { return nextCreateHistoryTime; }
            set { nextCreateHistoryTime = value; }
        }
        private bool runCreateHistoryEnabled;
        public bool RunCreateHistoryEnabled
        {
            get { return runCreateHistoryEnabled; }
            set { runCreateHistoryEnabled = value; }
        }
        private int nextCreateHistoryFrequencyMinutes = 1440;
        public int NextCreateHistoryFrequencyMinutes
        {
            get { return nextCreateHistoryFrequencyMinutes; }
            set { nextCreateHistoryFrequencyMinutes = value; }
        }
        private int daysToHistory = 7;
        public int DaysToHistory
        {
            get { return daysToHistory; }
            set { daysToHistory = value; }
        }
        private int repeatTimeSec = 2;
        public int RepeatTimeSec
        {
            get { return repeatTimeSec; }
            set { repeatTimeSec = value; }
        }
    }
}
